<template>
<h3>Child</h3>
<p>{{ title }}</p>
<p>{{ demo }}</p>
<p>{{ age }}</p>
<ul>
    <li v-for="(item, index) of names" :key="index">{{ item }}</li>
</ul>
<p>{{ userinfo.name }}</p>
<p>{{ userinfo.age }}</p>
</template>
<script>
export default{
    data() {
        return {
            
        }
    },
    // props 传递传递数据只能父级传递到子级
    props:["title","demo","age","names","userinfo"]
}
</script>